
{include file='tpl_header.html'}

<body>
<div id="Header">
  <div id="Logo"><a href="/"><img src="{$url}/images/logo.jpg" /></a></div>

	<div class="clear"></div>
</div>

<div id="HeaderLine">
</div>

<div class="clear"></div>

<div id="Wrapper">
  <div id="SideLeft">
	  <h2></h2>
		<ul id="SideNav">
			{foreach item=style from=$styleArray}			
				{if $styleId == $style.style_id}
				<li class="current">{$style.style_name} ({$style.style_style})</li>
				{else}
				  {if $styleId <> 0 && $style.style_id == 0}
					  <li><a href="{$url}">{$style.style_name} ({$style.style_style})</a></li>
					{else}
				    <li><a href="{$url}{ url action='style' styleid=$style.style_id }">{$style.style_name} ({$style.style_style})</a></li>			
				  {/if}
				{/if}
			
			{/foreach} 
		</ul>
		<div class="clear"></div>
		<div id="SideContent">	
		  <h2>随机专辑</h2>
			  {foreach item=albumrand from=$albumRand}
				<div class="SideAlbum">
			  <a href="{$url}{ url action='view' id=$albumrand.album_id }"><img src="{$url}/upload/photos/{$albumrand.album_photo}" />
				<p>{$albumrand.album_name}</p>
				<p>{$albumrand.artists.artist_name}</p></a>
				</div>
				{/foreach}
			
		</div>
  </div>
  <div id="detailContent">
	  <div class="detail">
			<p><img src="{$url}/upload/photos/{$album.album_ori}" /></p>
			<h2>{$album.album_name}</a> ~ {$album.artists.artist_name}</h2>
			<div class="subh2">
			  <p>专辑名称：{$album.album_name}</p>
				<p>专辑乐队：{$album.artists.artist_name}</p>
				<p>发行厂牌：{$album.labels.label_name}</p>
				<p>发行年份：{$album.release_date}</p>
				<p>专辑风格：{foreach item=styles from=$album.style}{$styles.style_style}({$styles.style_name})&nbsp; {/foreach}</p>
			</div>
			<div id="FlashPlayer">this will be replaced by the SWF.</div>
			<script type="text/javascript" src="{$url}/js/mediaplayer.js?album={$album.album_id}"></script>
			<div class="clear"></div>
			
			<p>{$album.album_content|nl2br}</p>
    </div>
		
		<div id="samelyContent">
		  <h2>{$album.artists.artist_name} 其他专辑</h2>
		  {foreach item=albums from=$albums}
		  <div class="samely">
			  <a href="{$url}{ url action='view' id=$albums.album_id }"><img src="{$url}/upload/thumbs/{$albums.album_thumb}" />
				<p>{$albums.album_name}</p></a>
			</div>
			{/foreach}
		</div>
  </div>

	

</div> 
{include file='tpl_footer.html'}

</body>
</html>